package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by dusy on 2017/11/22.
 */
public class OperationalEfficiency implements Serializable {
    /**
     * 业务类型
     */
    private String declarationType;
    /**
     * 报关行
     */
    private String customsBroker;
    /**
     * 合同协议号
     */
    private String contractNO;
    /**
     * 业务编号
     */
    private String businessId;
    /**
     * 集装箱号
     */
    private String containerNO;
    /**
     * 收发货人
     */
    private String companyName;
    /**
     * 提运单号
     */
    private String blNo;
    /**
     * 实际委托人
     */
    private String actualClient;
    /**
     * 报关单号
     */
    private String sno;
    /**
     * 客户支付时间点
     */
    private Date paymentTime;
    /**
     * 业务审核耗时（分钟）
     */
    private Integer validateTimeConsuming;
    /**
     * 业务审核时间
     */
    private Date validateTime;
    /**
     * 审核人
     */
    private String validator;
    /**
     * 业务申报耗时（分钟）
     */
    private Integer declarationTimeConsuming;
    /**
     * 业务申报时间
     */
    private Date declarationTime;
    /**
     * 申报操作人
     */
    private String declarant;
    /**
     * 总处理时间（分钟）
     */
    private Integer totalTimeConsuming;

    public String getDeclarationType() {
        return declarationType;
    }

    public void setDeclarationType(String declarationType) {
        this.declarationType = declarationType;
    }

    public String getCustomsBroker() {
        return customsBroker;
    }

    public void setCustomsBroker(String customsBroker) {
        this.customsBroker = customsBroker;
    }

    public String getContractNO() {
        return contractNO;
    }

    public void setContractNO(String contractNO) {
        this.contractNO = contractNO;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getContainerNO() {
        return containerNO;
    }

    public void setContainerNO(String containerNO) {
        this.containerNO = containerNO;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getBlNo() {
        return blNo;
    }

    public void setBlNo(String blNo) {
        this.blNo = blNo;
    }

    public String getActualClient() {
        return actualClient;
    }

    public void setActualClient(String actualClient) {
        this.actualClient = actualClient;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Integer getValidateTimeConsuming() {
        if (validateTime != null && paymentTime != null) {
            return (int) ((validateTime.getTime() - paymentTime.getTime() + 30000) / 1000 / 60);
        }
        return null;
    }

    public String getValidator() {
        return validator;
    }

    public void setValidator(String validator) {
        this.validator = validator;
    }

    public Date getValidateTime() {
        return validateTime;
    }

    public void setValidateTime(Date validateTime) {
        this.validateTime = validateTime;
    }

    public Integer getDeclarationTimeConsuming() {
        if (validateTime != null && declarationTime != null) {
            return (int) ((declarationTime.getTime() - validateTime.getTime() + 30000) / 1000 / 60);
        }
        return null;
    }

    public Date getDeclarationTime() {
        return declarationTime;
    }

    public void setDeclarationTime(Date declarationTime) {
        this.declarationTime = declarationTime;
    }

    public String getDeclarant() {
        return declarant;
    }

    public void setDeclarant(String declarant) {
        this.declarant = declarant;
    }

    public Integer getTotalTimeConsuming() {
        if (paymentTime != null && declarationTime != null) {
            return (int) ((declarationTime.getTime() - paymentTime.getTime() + 30000) / 1000 / 60);
        }
        return null;
    }

}
